package com.ykz2015.chapter3.controller;

import com.ykz2015.chapter3.props.DataBaseProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PropertiesController {

    @Autowired
    DataBaseProperties dbpros = null;

    @RequestMapping("/dbp")
    @ResponseBody
    public DataBaseProperties DataBasePros()
    {
        return dbpros;
    }


}
